//
//  GroupController.h
//  Groups
//
//  Created by Mathieu on 25/07/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "WordsAppDelegate.h"

//this is the object which will aggregate together the other arrays into the one array. 
///It's non specific. The groups are bunched together through an instantiation of this class whenever the language changes.
//This is more of a delegate object now
@interface GroupController : NSObject {
	NSManagedObjectContext *moc;
	//Outlets to controllers
	IBOutlet NSArrayController *groups;
	IBOutlet NSArrayController *wordArray;
	IBOutlet NSArrayController *languageArray;
	
	IBOutlet NSTextField *predicateField;
	IBOutlet WordsAppDelegate *wordsAppDelegate;
	
	NSArray *sortDescriptor;
	
}

- (IBAction)setSelectedSmartGroupPredicate:(id)sender;

- (NSArray *)sortDescriptor;
- (void)setSortDescriptor:(NSArray *)newSortDescriptor;


@end
